
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildescortEscortCfg : public ManualSingleton <GuildescortEscortCfg>
{
	friend ManualSingleton <GuildescortEscortCfg>;
public:
	GuildescortEscortCfg();
	~GuildescortEscortCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildescortEscortCfgInfo *GetGuildescortEscortCfgInfo(int32_t convoyId);
	const GuildescortEscortCfgMap *GetGuildescortEscortCfgMap() { return &m_GuildescortEscortCfgMap; }
private:
	GuildescortEscortCfgMap m_GuildescortEscortCfgMap;
};

#define  g_MakeGuildescortEscortCfgTable() (GuildescortEscortCfg::Instance())
#define  g_GetGuildescortEscortCfgTable() (GuildescortEscortCfg::GetInstance())
#define  g_DelGuildescortEscortCfgTable() (GuildescortEscortCfg::Destroy())